import {searchDetail} from "../../api/sellOutRepositoryRecordDetail"


let sellOutRepositoryRecordDetail = {
    data() {
        return {
            sellCode:'',
            sellOrderDetail:{},
            goodsList:[],
            theParam:this.$route.query
        };
    },
    methods:{
        async orderDetail(){
            let sellCode = this.sellCode;
            let response = await searchDetail(sellCode);
            this.goodsList = response;
        },
        pageBack(){
            this.$router.push("/sellOutRepositoryRecord");
        }
    },
    created(){
        this.sellCode = this.theParam.sellCode;
        this.sellOrderDetail = this.theParam;
        this.orderDetail();
    }
};

export default sellOutRepositoryRecordDetail;